package com.azirkxs.clothes.cys.service;

import com.azirkxs.clothes.cys.entity.User;
import com.azirkxs.clothes.cys.service.impl.BusinessException;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author azirkxs
 * @since 2023-04-09
 */
public interface IUserService extends IService<User> {
    Map<String,Object> login(User user);

    Map<String, Object> getUserInfo(String token);

    Map<String, Object> getPersonalReocommend(String token);

    void logout(String token);

    void register(User user) throws BusinessException;

    void infoEdit(User user);

    int changePassword(String newPassword,String oldPassword,Integer userId);

}
